<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

/////////////////////////// BACKEND - SHOP OWNER ////////////////////////////////
$route[SHOP_FOLDER_WSLASH] = 'user/home/index';
//shop category
$route[SHOP_FOLDER . CATEGORY_SLUG]                          = 'shop/category/index';
$route[SHOP_FOLDER . CATEGORY_SLUG . '/them']                = 'shop/category/insert';
$route[SHOP_FOLDER . CATEGORY_SLUG . '/them-moi']            = 'shop/category/doInsert';
$route[SHOP_FOLDER . CATEGORY_SLUG . '/' . URL_SLUG]         = 'shop/category/get/$1';
$route[SHOP_FOLDER . CATEGORY_SLUG . '/cap-nhat']            = 'shop/category/doUpdate';
$route[SHOP_FOLDER . CATEGORY_SLUG . '/cap-nhat-trang-thai'] = 'shop/category/flashUpdate';
//shop product
$route[SHOP_FOLDER . PRODUCT_SLUG]                              = 'shop/product/index';
$route[SHOP_FOLDER . PRODUCT_SLUG . '/' . PAGING_SLUG]          = 'shop/product/index/$1';
$route[SHOP_FOLDER . PRODUCT_SLUG . '/tim-kiem']                = 'shop/product/search';
$route[SHOP_FOLDER . PRODUCT_SLUG . '/tim-kiem/' . PAGING_SLUG] = 'shop/product/search/$1';
$route[SHOP_FOLDER . PRODUCT_SLUG . '/' . URL_SLUG]             = 'shop/product/get/$1';
$route[SHOP_FOLDER . PRODUCT_SLUG . '/cap-nhat']                = 'shop/product/doUpdate';
$route[SHOP_FOLDER . PRODUCT_SLUG . '/them']                    = 'shop/product/insert';
$route[SHOP_FOLDER . PRODUCT_SLUG . '/them-moi']                = 'shop/product/doInsert';
//product packet
$route[SHOP_FOLDER . PRODUCT_PACKET_SLUG]          = 'shop/packet/index';
$route[SHOP_FOLDER . PRODUCT_PACKET_SLUG . '/buy'] = 'shop/packet/buyAPacket';
//shop order
$route[SHOP_FOLDER . ORDER_SLUG]                              = 'shop/order/index';
$route[SHOP_FOLDER . ORDER_SLUG . '/' . PAGING_SLUG]          = 'shop/order/index/$1';
$route[SHOP_FOLDER . ORDER_SLUG . '/tim-kiem']                = 'shop/order/search';
$route[SHOP_FOLDER . ORDER_SLUG . '/tim-kiem/' . PAGING_SLUG] = 'shop/order/search/$1';
$route[SHOP_FOLDER . ORDER_SLUG . '/hoa-don-' . URL_SLUG]     = 'shop/order/get/$1';
$route[SHOP_FOLDER . ORDER_SLUG . '/cap-nhat']                = 'shop/order/doUpdate';
//contact
$route[SHOP_FOLDER . CONTACT_SLUG]                     = 'user/contact/index';
$route[SHOP_FOLDER . CONTACT_SLUG . '/' . PAGING_SLUG] = 'user/contact/index/$1';
$route[SHOP_FOLDER . CONTACT_SLUG . '-([0-9]+)']       = 'user/contact/get/$1';
$route[SHOP_FOLDER . CONTACT_SLUG . '/thay-doi']       = 'user/contact/changeStatus';
//advertise
$route[SHOP_FOLDER . ADVERTISE_SLUG]                     = 'user/advertise/index';
$route[SHOP_FOLDER . ADVERTISE_SLUG . '/' . PAGING_SLUG] = 'user/advertise/index/$1';
$route[SHOP_FOLDER . ADVERTISE_SLUG . '-([0-9]+)']       = 'user/advertise/get/$1';
$route[SHOP_FOLDER . ADVERTISE_SLUG . '/thay-doi']       = 'user/advertise/changeStatus';
$route[SHOP_FOLDER . ADVERTISE_SLUG . '/dang-ki-moi']    = 'user/advertise/register';
$route[SHOP_FOLDER . ADVERTISE_SLUG . '/dang-ki-moi/do'] = 'user/advertise/doRegister';
//rao vat
$route[SHOP_FOLDER . RAOVAT_SLUG]                              = 'user/raovat/index';
$route[SHOP_FOLDER . RAOVAT_SLUG . '/' . PAGING_SLUG]          = 'user/raovat/index/$1';
$route[SHOP_FOLDER . RAOVAT_SLUG . '/' . URL_SLUG]             = 'user/raovat/get/$1';
$route[SHOP_FOLDER . RAOVAT_SLUG . '/them']                    = 'user/raovat/insert';
$route[SHOP_FOLDER . RAOVAT_SLUG . '/them-moi']                = 'user/raovat/doInsert';
$route[SHOP_FOLDER . RAOVAT_SLUG . '/cap-nhat']                = 'user/raovat/doUpdate';
$route[SHOP_FOLDER . RAOVAT_SLUG . '/cap-nhat-trang-thai']     = 'user/raovat/flashUpdate';
$route[SHOP_FOLDER . RAOVAT_SLUG . '/tim-kiem']                = 'user/raovat/search';
$route[SHOP_FOLDER . RAOVAT_SLUG . '/tim-kiem/' . PAGING_SLUG] = 'user/raovat/search/$1';
///////////////////////////////////////////////////////////